import request from '@/utils/request'

  // 获取用户总数
  export function getIndexUserNum() {
    return request({
      url: '/home/statistics/getUserStatistics',
      method: 'get'
    })
  } 

// 获取风险单元数据
export function getIndexUnitNum() {
    return request({
        url: '/home/statistics/getRiskUnitStatistics',
        method: 'get'
    })
} 
// 获取风险对象数据
 export function getIndexTargetNum() {
    return request({
        url: '/home/statistics/getRiskTargetStatistics',
         method: 'get'
    })
}

// 获取隐患排查率
export function getIndexCheckRate() {
    return request({
        url: '/home/statistics/getHiddenCheckRate',
         method: 'get'
    })
}

// 获取隐患整改率
export function getIndexRectifyRate() {
    return request({
        url: '/home/statistics/getHiddenRectificationRate',
         method: 'get'
    })
}

// 获取最近一周隐患排查任务数和任务完成数
export function getIndexCheckNumByWeek() {
    return request({
        url: '/home/statistics/getHiddenCheckNum',
         method: 'get'
    })
}

// 获取最近一周隐患上报数和整改数
export function getIndexRectifyNumByWeek() {
    return request({
        url: '/home/statistics/getHiddenRectificationNum',
         method: 'get'
    })
}